package io.ouka.jvm.hotspot.selfread.methodinvoke;

/**
 * @author ouka
 * StackValue
 */
public class StackValue {
    private int type;
    private int val;
    private Object obj;

    public StackValue(int type, int val) {
        this.type = type;
        this.val = val;
    }

    public StackValue(int type, Object val) {
        this.type = type;
        this.obj = val;
    }

    @Override
    public String toString() {
        return "StackValue{" +
                "type=" + type +
                ", val=" + val +
                ", obj=" + obj +
                '}';
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
